package com.dafeng.interfacetest.h2.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dafeng.interfacetest.h2.entity.Parentorder;
import com.dafeng.interfacetest.h2.mapper.CatMapper;
import com.dafeng.interfacetest.h2.service.CatService;
@Service
public class CatServiceImpl implements CatService {
	 	@Autowired
	    private CatMapper catMapper;

	    @Override
	    public List<Parentorder> list() {
	        return catMapper.selectAll();
	    }


		@Override
		public void insert(int param) {
			 catMapper.insert(param);
			 catMapper.detail(param);
		}

		@Override
		public List<Parentorder> listFixalgo_parentorder(int param) {
	        return catMapper.selectparentorder(param);
		}

		@Override
		public List<Parentorder> querySingleFixalgo_parentorders(List<Integer> params) {
			return catMapper.querySingleparentorders(params);
		}

		@Override
		public void insertParentorder(Parentorder param) {
			 catMapper.insertParentorder(param);
		}
		
		@Override
		public List<Parentorder> getByMap(Map<String, Integer> map) {
			System.out.println("map:" +map.keySet());
			return null;
		}

		
}
